package pl.edu.agh.gronoMining.owlToGraphConverter.parser.utils;

import java.io.Serializable;

public class NodeData implements Serializable {

	private int nodeType;
	private Object nodeValue;
	
	public NodeData() {
		
	}
	
	public NodeData(int nodeType, Object nodeValue) {
		this.nodeType = nodeType;
		this.nodeValue = nodeValue;
	}
	
	public int getNodeType() {
		return nodeType;
	}
	public void setNodeType(int nodeType) {
		this.nodeType = nodeType;
	}
	public Object getNodeValue() {
		return nodeValue;
	}
	public void setNodeValue(Object nodeValue) {
		this.nodeValue = nodeValue;
	}
	
	public boolean equals(Object obj) {
		NodeData data = (NodeData) obj;
		if (data.getNodeType() == nodeType) {
			Object objNodeValue = data.getNodeValue();
			if (objNodeValue == null) {
				return true;
			} else {
				return objNodeValue.equals(nodeValue);
			}
		}
		return false;
	}
	
	public int hashCode() {
		int code = new Integer(this.nodeType).hashCode();
		if (this.nodeValue != null)
			code += this.nodeValue.hashCode();
		return code;
	}
	
	public static final int USER = 1;
	public static final int IMIE = 2;
	public static final int SZUKA = 3;
	public static final int DATA_REJESTRACJI = 4;
	public static final int MIESIAC = 5;
	public static final int ZNAK_ZODIAKU = 6;
	public static final int WIEK = 7;
	public static final int CZAS_LOGOWANIA = 8;
	public static final int PLEC = 9;
	public static final int MIASTO = 10;
	public static final int WIELKOSC_MIASTA = 11;
	public static final int WOJEWODZTWO = 12;
	public static final int ILOSC_LUDZI_WOJEWODZTWA = 13;
	public static final int ZAMOZNOSC_WOJEWODZTWA = 14;
	public static final int KRAJ = 15;
	public static final int NAZWA_GRONA = 16;
	public static final int DATA_ZALOZENIA_GRONA = 17;
	public static final int WIELKOSC_GRONA = 18;
	public static final int TEMAT_GRONA = 19;
	public static final int ZAWIERA_SIE = 20;
	public static final int ZAPROSZONY_PRZEZ = 21;
	
	
	
}
